package com.rock.upms.client.controller;

import org.apache.shiro.authz.annotation.RequiresRoles;
import org.apache.shiro.subject.Subject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import com.rock.upms.client.util.UserUtil;

@Controller
public class HomeController {
	private static final Logger log = LoggerFactory.getLogger(HomeController.class);
	
	//@RequiresRoles("login")
	@RequestMapping("/home")
	public String showHome(Model model) {
		//Subject subject = UserUtil.getSubject();
		log.trace("--->显示首页");
		return "public/core/home";
	}
}